package br.ufc.ck0017.ir.tree;

import java.util.ArrayList;
import java.util.List;

class MEM implements IRNode {
    private final IRNode IRNode;

    MEM(IRNode node) {
        this.IRNode = node;
    }

    @Override
    public List<IRNode> getChildren() {
        List<IRNode> children = new ArrayList<>(1);
        children.add(IRNode);

        return children;
    }

    @Override
    public IRNode build(List<IRNode> children) {
        return new MEM(children.get(0));
    }

    public IRNode getIRNode() {
        return IRNode;
    }
}
